﻿/* Pengaturan umum: warna teks, ukuran kotak, dan jenis huruf halaman. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1b321c;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Header: logo di kiri, navigasi di tengah, dan tombol masuk di kanan. */
.header {
  height: 60px;
  background: #fff;
}

.navbar {
  max-width: 960px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.leaf-logo {
  width: 38px;
  height: 32px;
  position: relative;
  display: inline-block;
}

.leaf-logo i {
  position: absolute;
  width: 20px;
  height: 25px;
  border-radius: 0 100% 0 100%;
  background: #296a21;
  left: 1px;
  top: 8px;
  transform: rotate(-8deg);
}

.leaf-logo i + i {
  background: #70b633;
  left: 18px;
  top: 0;
  transform: rotate(87deg);
}

.nav-links {
  align-self: stretch;
  display: flex;
  gap: 40px;
  align-items: center;
  color: #3e4d3e;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links .active {
  color: #19571a;
  font-weight: 700;
}

.nav-links .active::after {
  content: '';
  height: 3px;
  position: absolute;
  bottom: 11px;
  left: 0;
  right: 0;
  background: #2e6c27;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 11px;
  font-weight: 600;
}

.button-login, .button-primary {
  background: #145b0e;
  color: white;
}

.button-login {
  width: 88px;
  height: 36px;
  font-size: 14px;
}

/* Hero: gambar rumah kaca adalah foto terpisah tanpa teks atau kotak statistik. */
.hero {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #eef5e8;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 36%;
  background: url('rumah-kaca-plastik.png') center center / cover no-repeat;
}

/* Bentuk lengkung hijau dibuat dengan CSS, sehingga bukan bagian dari gambar. */
.hero-shape {
  position: absolute;
  z-index: 0;
  top: -25%;
  bottom: -1%;
  left: -4%;
  width: 55%;
  background: #eef5e8;
  border-radius: 0 0 48% 0;
  box-shadow: 32px 24px 0 #c7dda9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 956px;
  margin: auto;
  padding-top: 44px;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -.8px;
  font-weight: 800;
}

.hero-content p {
  margin: 11px 0 22px;
  font-size: 18px;
  line-height: 1.23;
  color: #475848;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  padding-left: 4px;
}

.hero-actions .button {
  width: 174px;
  height: 42px;
  font-size: 15px;
}

.button-outline {
  border: 1px solid #315b32;
  color: #263d27;
  background: #eef5e8;
}

/* Statistik ini adalah HTML asli. Warna rgba membuat foto terlihat di belakangnya. */
.stats {
  position: absolute;
  z-index: 1;
  top: 112px;
  right: 0;
  width: 373px;
  height: 94px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  color: white;
  background: rgba(28, 94, 17, .78);
  border: 2px solid #c4dfac;
  border-right: 0;
  border-radius: 20px 0 0 20px;
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stats strong {
  font-size: 24px;
}

.stats span {
  font-size: 10px;
  white-space: nowrap;
}

/* Kartu kawasan: foto di atas dan keterangan di bawahnya. */
.areas {
  max-width: 1000px;
  margin: auto;
  padding: 27px 0 22px;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -1px;
  font-weight: 800;
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 11px 0 24px;
}

.section-decoration > span:not(.small-leaf) {
  width: 122px;
  height: 3px;
  background: #d2e2c3;
  border-radius: 5px;
}

.small-leaf {
  font-size: 22px;
  line-height: 1;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.area-card {
  overflow: hidden;
  min-height: 270px;
  background: white;
  border-radius: 11px;
  box-shadow: 0 4px 8px #00000012;
}

/* Sementara hanya foto kartu yang menggunakan potongan gambar acuan. */
.area-image {
  height: 159px;
  background-image: url('referensi-dashboard.png');
  background-size: 450% auto;
  background-repeat: no-repeat;
}

.image-one {
  background-position: 4.9% 78.5%;
}

.image-two {
  background-position: 35% 78.5%;
}

.image-three {
  background-position: 65% 78.5%;
}

.image-four {
  background-position: 95% 78.5%;
}

.card-content {
  padding: 12px 8px 14px;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.card-content p {
  margin: 3px 0 12px;
  color: #526050;
  font-size: 15px;
  font-weight: 600;
}

.card-button {
  padding: 7px 16px;
  border-radius: 9px;
  background: #398122;
  color: white;
  font-size: 14px;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: 20px;
  background: #e3eed9;
  color: #536451;
  font-size: 14px;
  font-weight: 600;
}

/* Di layar kecil, foto dan teks disusun ke bawah agar tetap mudah dibaca. */
@media (max-width: 1000px) {
  .navbar, .hero-content, .areas {
    margin-left: 5%;
    margin-right: 5%;
  }

}

@media (max-width: 700px) {
  .header {
    height: auto;
  }

  .navbar {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    font-size: 20px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    height: 35px;
    justify-content: center;
  }

  .nav-links .active::after {
    bottom: 0;
  }

  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    order: 1;
    height: 220px;
  }

  .hero-shape {
    display: none;
  }

  .hero-content {
    order: 0;
    padding: 28px 0 25px;
  }

  h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .desktop-break {
    display: none;
  }

  .stats {
    top: auto;
    bottom: 62px;
    width: min(360px, 92%);
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h2 {
    font-size: 28px;
  }

  .area-image {
    height: 150px;
  }

}

@media (max-width: 420px) {
  .area-grid {
    grid-template-columns: 1fr;
  }

  .area-image {
    height: 180px;
  }

  .hero-actions .button {
    width: 50%;
    font-size: 14px;
  }

}

/* Footer dipakai bersama oleh halaman beranda dan tentang. */
.about-footer {
  padding: 11px 20px;
  background: #164724;
  color: white;
  text-align: center;
  font-size: 14px;
}

